home
diamond Go Premium
Data Engineering Path  ·  Airflow
Apache Airflow Logo

Theoretical Quiz — Module 2

📝 Test Your Knowledge

Q1. What are the five main components of Airflow's architecture? Describe the role of each.

Show Answer
  1. Scheduler — Parses DAGs, creates DAG Runs, and schedules tasks for execution
  2. Webserver — Serves the UI for monitoring and managing workflows
  3. Executor — Determines how tasks are distributed (locally, via Celery, or K8s)
  4. Metadata Database — Stores all state, configuration, connections, and XCom data
  5. Triggerer — Handles deferrable operators asynchronously

Q2. Why should you never use SQLite in production?

Show Answer

SQLite doesn't support concurrent writes. In production, the Scheduler, Webserver, and Workers all write to the database simultaneously. SQLite would cause lock contention, data corruption, and unreliable behavior. Use PostgreSQL or MySQL instead.


Q3. Explain the difference between CeleryExecutor and KubernetesExecutor. When would you choose each?

Show Answer
  • CeleryExecutor: Tasks are distributed to pre-provisioned workers via a message broker (Redis/RabbitMQ). Workers are always running. Best for stable workloads with predictable resource needs.
  • KubernetesExecutor: Each task spawns a new Kubernetes pod with custom resources. Pods are destroyed after completion. Best for variable workloads, strict task isolation, and cost optimization.

Choose CeleryExecutor for consistent, high-throughput pipelines. Choose KubernetesExecutor for elastic, cloud-native deployments with varying resource requirements.


Q4. What is a deferrable operator and why was the Triggerer component introduced?

Show Answer

A deferrable operator can "pause" its execution and hand off monitoring to the Triggerer. The Triggerer uses Python's asyncio to efficiently monitor hundreds of waiting conditions without consuming worker slots.

Without deferrable operators, a sensor waiting for a file on S3 would occupy a worker slot for the entire wait time (potentially hours). With deferrable operators, the worker is freed immediately, and the Triggerer handles the waiting asynchronously.

lock

This content is reserved for Premium Members.

Upgrade to Premium

Entity Details

Create New Item

help

Submit Technical Query

Have a question or run into an issue? Describe it below, upload an optional screenshot, and our engineering team will answer it!

image Attach image (optional)

Submit Feedback

build Free Developer Utility Free Tool
gavel

Privacy & Legal Disclaimer

1. Client-Side Browser Processing

All utility tools on DeepEngineerHub (including Image to PDF, Text Formatters, JSON Converters, and Encryptors) execute 100% locally within your client browser using WebAssembly and JavaScript. No uploaded images, text, or documents are transmitted, collected, or stored on remote servers.

2. Limitation of Liability ("As-Is" Provision)

Tools and services are provided free of charge for convenience and educational purposes "as-is" without warranties of any kind. DeepEngineerHub shall not be held liable for any data loss, formatting inconsistencies, or indirect damages resulting from tool usage.

3. Open Source & Third-Party Software

Certain utilities utilize open-source client libraries (such as jsPDF, Mermaid.js, Pyodide) licensed under MIT, Apache, or BSD open licenses. All intellectual property remains with their respective copyright holders.